import Vue from 'vue'
// import './plugins/axios'
// Vue.http.options.xhr = { withCredentials: true }
//vant 确认提示框
import { Dialog } from 'vant'; 
Vue.use(Dialog)        
import VueWechatTitle from 'vue-wechat-title'  //引入

Vue.use(VueWechatTitle)                                  //注册组件
import 'font-awesome/css/font-awesome.css'
//公共过滤器
import '@/plugins/format-date.js'
//公共样式文件
import '@/css/common.css'
import '@/css/set.css'
//公共样式文件end
import basefun from './plugins/basefun'
Vue.use(basefun);
import 'amfe-flexible/index.js'
import App from './app.vue'
import router from './router'
import global_ from './views/Global';
import qs from 'qs';
import {
  Row,
  Col
} from 'vant';

import {
  Popup
} from 'vant';
// vant下拉刷新
import { PullRefresh } from 'vant';
Vue.use(PullRefresh);

import { NavBar } from 'vant';
import { Picker } from 'vant';
import { Icon } from 'vant';
Vue.use(Icon);
Vue.use(Picker);
Vue.use(NavBar);
import { Cell, CellGroup } from 'vant';

Vue.use(Cell).use(CellGroup);

import { Field } from 'vant';

Vue.use(Field);
import { Button } from 'vant';

Vue.use(Button);
import { Area } from 'vant';

Vue.use(Area);

Vue.use(Popup);
Vue.use(Row).use(Col);
Vue.prototype.GLOBAL = global_;
Vue.prototype.$qs = qs;

Vue.config.productionTip = false
//为不同的页面切换title
router.beforeEach((to, from, next) => {
  window.document.title = to.meta.title;
  next()
})
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')